/*
 * Copyright (C) 2017-2021
 * All rights reserved, Designed By
 * Copyright authorization contact 18814114118
 */
package com.shop.cereshop.commons.domain.notice;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 用户-消息已读记录表实体
 */
@Data
@ApiModel(value = "CereNoticeAgentRel", description = "用户-消息已读记录表")
@TableName("cere_notice_agent_rel")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class CereNoticeAgentRel {

  /**
   * 关联ID
   */
  @ApiModelProperty(value = "关联ID")
  @TableId(value = "notice_relative_id", type = IdType.AUTO)
  private Long noticeRelativeId;

  /**
   * 关联消息ID
   */
  @ApiModelProperty(value = "关联消息ID")
  @TableField("notice_id")
  private Long noticeId;

  /**
   * 代理商ID
   */
  @ApiModelProperty(value = "代理商ID")
  @TableField("agent_user_id")
  private Long agentUserId;

  /**
   * 是否已读：0-未读，1-已读
   */
  @ApiModelProperty(value = "是否已读：0-未读，1-已读")
  @TableField("if_read")
  private Integer ifRead;

  /**
   * 关联创建时间
   */
  @ApiModelProperty(value = "关联创建时间")
  @TableField("create_time")
  private LocalDateTime createTime;
}
